
package com.be.beadmin.quality.repository;

import com.be.beadmin.quality.entity.CabinetError;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author zty
* @date 2023-07-01
**/
public interface CabinetErrorRepository extends JpaRepository<CabinetError, String>, JpaSpecificationExecutor<CabinetError> {

    CabinetError findCabinetErrorByIdAndDelete(String id, Integer delete);

    CabinetError findCabinetErrorById(String id);

    List<CabinetError> findCabinetErrorByCabinetQualityIdAndDelete(String cabinetQualityId, Integer delete);
}